package com.wash.shoes.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author ljg
 * @since 2024-08-27
 */
@ApiModel(value = "鞋架的格子")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("os_shoe_rack_grid")
public class ShoeRackGridPo extends Model<ShoeRackGridPo> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "鞋架的一个格子id")
    @TableId(value = "id")
    private String id;

    @ApiModelProperty(value = "店铺的id")
    private String shopId;

    @ApiModelProperty(value = "鞋架的id")
    private String shoeRackId;

    @ApiModelProperty(value = "鞋子的id")
    @TableField(fill = FieldFill.UPDATE)
    private String shoeId;

    @ApiModelProperty(value = "显示的编号code-row-col")
    private String showCode;

    @ApiModelProperty(value = "行编号")
    @TableField("row_number_sort")
    private Integer rowNumberSort;

    @ApiModelProperty(value = "列编号")
    @TableField("col_number_sort")
    private Integer colNumberSort;

    @ApiModelProperty(value = "序号")
    private Integer sortNum;

    @ApiModelProperty(value = "状态0删除  1上架  2下架")
    private Integer status;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "扩展字段")
    private String extendInfo;

    @TableField(value = "create_by", fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建者")
    private String createBy;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @TableField(value = "update_by", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新者")
    private String updateBy;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}
